﻿
using Xacml.Core;
using System;
using System.Xml;

namespace Xacml.Core.Policy
{
  public class ConditionElement : ConditionElementReadWrite
  {
    public override string FunctionId
    {
      get
      {
        return base.FunctionId;
      }
      set
      {
        throw new NotSupportedException();
      }
    }

    public override IExpressionCollectionReadWrite Arguments
    {
      get
      {
        return (IExpressionCollectionReadWrite) new IExpressionCollection(base.Arguments);
      }
      set
      {
        throw new NotSupportedException();
      }
    }

    public ConditionElement(XmlReader reader, XacmlVersion version)
      : base(reader, version)
    {
    }

    public ConditionElement(string functionId, IExpressionCollectionReadWrite arguments, XacmlVersion schemaVersion)
      : base(functionId, arguments, schemaVersion)
    {
    }
  }
}
